package net.dotool.reflect;

import java.util.Collection;

import net.dotool.IRow;

/**
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com	
 * 2018年2月27日 下午4:08:11
 *
 */
public class Demo {
	public static void main(String[] args) {
		ReflectUtils.createSharedReflections("classes", "bin", "dotool.");
		Collection<String> subTypes = ReflectUtils.listSubClass(IRow.class);//
		for (final String className : subTypes) {
			try {
				IRow kpi = (IRow) Class.forName(className).newInstance();
				System.out.println(kpi);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
